@import "_var";

.page-index {
  .app-header {
    margin-bottom: 0;
  }
  .bg {
    height: calc(100vh - 90px);
    display: flex;
    justify-content: center;
    background-image: url(../search-bg.jpg);
    background-size: cover;
    background-position: center;
  }
  main {
    margin-top: 30vh;
    .hd {
      margin-bottom: 50px;
    }
    form {
      width: 880px;
      height: 65px;
      display: flex;
      border-radius: 5px;
      overflow: hidden;
      input {
        flex: 1;
        padding: 0 24px;
      }
      button {
        display: flex;
        align-items: center;
        padding: 0 40px;
        background-color: @text-brand;
        color: #fff;
        font-size: 20px;
        img {
          margin-right: 10px;
        }
      }
    }
  }
}

.page-list {
  section.search {
    margin-bottom: 32px;
    .hd {
      display: flex;
      margin-bottom: 12px;
      color: @text-brand;
      font-weight: bold;
      .clear {
        margin-left: auto;
        font-size: 14px;
        color: @text-brand;
      }
    }
  }

  .mark {
    position: absolute;
    top: 0;
    right: 0;

    span {
      position: relative;
      z-index: 1;
      top: 10px;
      left: -10px;
      color: #8a6e49;
      font-size: 12px;
    }

    &::before {
      content: "";
      position: absolute;
      top: 0;
      right: 0;
      border-width: 40px;
      border-style: solid;
      border-color: #edd7ba #edd7ba transparent transparent;
    }
  }
}

.page-detail {
  .back {
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    img {
      margin-right: 8px;
    }
  }

  .panel {
    margin-bottom: 32px;
    > .hd {
      display: flex;
      align-items: baseline;
      margin-bottom: 12px;
      color: @text-brand;
      font-weight: bold;
      .more {
        margin-left: auto;
        color: #666;
        font-size: 12px;
      }
    }
    > .bd {
      padding: 20px;
      background-color: #fff;
      border-radius: 5px;
      overflow: hidden;
    }
  }

  .layout {
    display: flex;
    main {
      flex: 1;
    }
    aside {
      flex: 0 0 240px;
      margin-left: 30px;
    }
  }

  .images {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 20px;
    figcaption {
      margin-top: 12px;
      color: #777;
      text-align: center;
      font-size: 14px;
    }
  }

  .tabs {
    display: flex;
    align-items: center;
    font-size: 14px;
    padding: 20px 30px;
    .tab {
      position: relative;
      margin-right: 60px;
      padding: 0 4px;
      cursor: pointer;

      &::after {
        display: none;
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        transform: translateY(5px);
        width: 100%;
        height: 2px;
        background-color: #8a6e49;
      }

      &.active {
        &::after {
          display: block;
        }
      }
    }
  }
  .tab-content {
    background-color: #fff;
  }

  .list-split {
    > .list-item {
      border-bottom: 1px solid #ddd;
      border-radius: 0;
      &:last-child {
        border-bottom: 0;
      }
    }
    + .more {
      border-top: 1px solid #ddd;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 16px 0;
      color: @text-brand;
      font-size: 14px;
      cursor: pointer;
      img {
        width: 12px;
        margin-left: 8px;
      }
    }
  }

  aside {
    li {
      padding: 12px 0;
      border-bottom: 1px solid #ddd;
      &:first-child {
        padding-top: 0;
      }
      &:last-child {
        padding-bottom: 0;
        border-bottom: 0;
      }
      a {
        font-size: 14px;
        overflow: hidden;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
      }
    }
  }
}